/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package generator.collections;

import generator.statements.Invoice;

/**
 * @author Mateusz Pytel 
 * @email dj-necro@wp.pl
 * @since 
 * @version 
 */
final public class InvoiceTable extends AbstractTable<Invoice> {
    protected static InvoiceTable instance;
    
    private static int id = 1;
    
    public static int autoincrement()
    {
        return id++;
    }
    
    private InvoiceTable() {}
    
    public static InvoiceTable getInstance()
    {
        if (null == instance)
            instance = new InvoiceTable();
        
        return instance;
    }

    @Override
    public String getTableName()
    {
        return "invoice";
    }    
}
